<?php

// 店铺分类

namespace app\shop\model;

use think\Model;

class ShopType extends Model
{
    // 店铺分类 店铺关联
    public function Shop()
    {
        return $this->hasMany('Shop','type_id','id')->field('type_id,title,logo')->limit(3);
    }
}